package com.zs.games.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zs.games.entity.GameNews;
import com.zs.games.param.PageQuery;
import com.zs.games.param.UserCommentNewParam;
import com.zs.games.vo.GameNewVo;

public interface GameNewsService extends IService<GameNews> {
    IPage<GameNewVo> getPageNews(PageQuery param);
    GameNewVo getGameNewsById(Integer newsId);
    Boolean createGameNews(GameNews gameNews);
    Boolean updateGameNews(GameNews gameNews);
    Boolean deleteGameNews(Integer newsId);
    Boolean praiseGameNews(Integer newsId);
    Boolean cancelPraiseGameNews(Integer newsId);
    Boolean collectGameNews(Integer newsId);
    Boolean cancelCollectGameNews(Integer newsId);

    Boolean commentGameNews(UserCommentNewParam param);

    Boolean deleteCommentGameNews(Integer commentId);

}
